<?php
class flow_dljgflowClassModel extends flowModel
{
    //自定义审核人读取
    protected function flowcheckname($num){
        $sid = ''; //审核人Id
	    $sna = ''; //审核人
	    if($num=='checkid'){
            $sid = '18';
		    $sna = '装备采购科科长';//多人,分开和sid数量一样
	    }
	    return array($sid, $sna);
    }

    //审核完成后调用、给主表字段增加状态
    protected function flowcheckafter($zt, $sm){

    }

    //审核之前调用
    protected function flowcheckbefore(){

    }

    //审核步骤根据$num 编号判断是否需要审核
    protected function flowcoursejudge($num){
        if($num != 'isCheck') return false;
        $info = m('flow_log')->getall('`table`="cg_dljg_flow"'.' and mid = '.$this->id.' and name="法务审核" and status = 2','id');
        if($info){
            return true;
        }else{
            return false;
        }
    }
}